package org.csu.newpetstoreback.service;

import org.csu.newpetstoreback.common.CommonResponse;
import org.csu.newpetstoreback.entity.Comment;

import java.util.List;

public interface CommentService {
    //获取某item的所有评论
    CommonResponse<List<Comment>> getCommentsByItemid(String itemId);

    //获取某用户的所有评论
    CommonResponse<List<Comment>> getCommentsByUsername(String username);

    //新增一条评论
    CommonResponse<Comment> addComment(Comment comment);

    //删除指定评论
    CommonResponse<Comment> deleteCommentById(int commentId);

    //查看当前订单数
    int getCommentNum();

}
